<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="/js/vue.min.js"></script>
<script type="text/javascript" src="https://cdn.bootcss.com/vue-resource/1.5.1/vue-resource.min.js"></script>
</head>
<body>
	你好
<div style="background: pink" id="app">
	<button v-on:click="send">自增</button>
</div>
</body>
<script type="text/javascript">
const app=new Vue({
	el:"#app",
	 methods:{
         send:function(){
             this.$http.get('http://localhost:8080/getUid').then(resp=> {
                 alert(resp.data);
             })
         }
	 }
});
</script>
</html>